package com.dao;

import com.dao.provider.DeptDaoProvider;
import com.entity.Dept;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;

/**
 * @author cj
 * @date 2019/10/14
 */
public interface DeptDao {

    @InsertProvider(type = DeptDaoProvider.class,method = "insertSql")
    @Options(useGeneratedKeys = true,keyColumn = "id",keyProperty = "id")
    void insert(Dept dept);
}
